package com.ruoyi.wisdom.service.impl;

import java.util.List;

import com.ruoyi.wisdom.domain.FzServiceCulture;
import com.ruoyi.wisdom.mapper.FzServiceCultureMapper;
import com.ruoyi.wisdom.service.IFzServiceCultureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 小区活动Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-03-05
 */
@Service
public class FzServiceCultureServiceImpl implements IFzServiceCultureService
{
    @Autowired
    private FzServiceCultureMapper fzServiceCultureMapper;

    /**
     * 查询小区活动
     * 
     * @param cultureId 小区活动ID
     * @return 小区活动
     */
    @Override
    public FzServiceCulture selectFzServiceCultureById(String cultureId)
    {
        return fzServiceCultureMapper.selectFzServiceCultureById(cultureId);
    }

    /**
     * 查询小区活动列表
     * 
     * @param fzServiceCulture 小区活动
     * @return 小区活动
     */
    @Override
    public List<FzServiceCulture> selectFzServiceCultureList(FzServiceCulture fzServiceCulture)
    {
        return fzServiceCultureMapper.selectFzServiceCultureList(fzServiceCulture);
    }

    /**
     * 新增小区活动
     * 
     * @param fzServiceCulture 小区活动
     * @return 结果
     */
    @Override
    public int insertFzServiceCulture(FzServiceCulture fzServiceCulture)
    {
        return fzServiceCultureMapper.insertFzServiceCulture(fzServiceCulture);
    }

    /**
     * 修改小区活动
     * 
     * @param fzServiceCulture 小区活动
     * @return 结果
     */
    @Override
    public int updateFzServiceCulture(FzServiceCulture fzServiceCulture)
    {
        return fzServiceCultureMapper.updateFzServiceCulture(fzServiceCulture);
    }

    /**
     * 删除小区活动对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteFzServiceCultureByIds(String ids)
    {
        return fzServiceCultureMapper.deleteFzServiceCultureByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除小区活动信息
     * 
     * @param cultureId 小区活动ID
     * @return 结果
     */
    @Override
    public int deleteFzServiceCultureById(String cultureId)
    {
        return fzServiceCultureMapper.deleteFzServiceCultureById(cultureId);
    }
}
